﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NepedagoskiKader.aspx.cs" Inherits="Sio.Mdm.Web.Uporabnik.NepedagoskiKader" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Nepedagoški kader</title>
</head>
<body>
    <form id="formUceciPodrobnosti" runat="server">
    <ext:ResourceManager ID="ResourceManager2" runat="server" >
    </ext:ResourceManager>
    
    <ext:Store runat="server" ID="StorePoste">
    <Reader>
      <ext:JsonReader IDProperty="PostaId">
        <Fields>
            <ext:RecordField Name="PostaId" Type=Int />
            <ext:RecordField Name="PostnaStevilka" Type=Int />
            <ext:RecordField Name="Naziv" Type=String />      
            <ext:RecordField Name="StevilkaNaziv" Type=String >      
              <Convert Handler="return record.PostnaStevilka+' '+record.Naziv;" />
            </ext:RecordField>
        </Fields>
      </ext:JsonReader>
    </Reader>
    </ext:Store>
		<ext:Store ID="StorePoklic" runat="server">
			<Reader>
				<ext:JsonReader IDProperty="PoklicId">
					<Fields>
						<ext:RecordField Name="PoklicId" Type="Int" />
						<ext:RecordField Name="Naziv" Type="String" />
					</Fields>
				</ext:JsonReader>
			</Reader>
		</ext:Store>
		<ext:Store ID="StoreDelovnoMesto" runat="server">
			<Reader>
				<ext:JsonReader IDProperty="DelovnoMestoId">
					<Fields>
						<ext:RecordField Name="DelovnoMestoId" Type="Int" />
						<ext:RecordField Name="Naziv" Type="String" />
					</Fields>
				</ext:JsonReader>
			</Reader>
		</ext:Store>
    
    <ext:Viewport ID="Viewport1" runat="server" Layout="Border">
      <Items>
        <sio:ScrollingPanel ID="ScrollingPanel1" runat="server"  Border="true" Region="center" Height="220" AnchorVertical="-10" > 
          <Items>
            <ext:FormPanel ID="FormPanelPodrobnosti" runat="server" Padding="6" LabelAlign="Top" Height="280">   
              <Items>                                      
                <ext:fieldset ID="OFieldset3" runat="server" title="Osebni podatki" layout="form" Width="625" >
                  <Items>
                    <ext:Panel 
                      ID="Panel3" runat="server"
                      Width="600" Border="false" >
                      <Items>
                        <ext:Container ID="Container1" runat="server" Layout="Column" Height="90">
                          <Items>
                            <ext:Container ID="Container2" runat="server" LabelAlign="Top" Layout="Form" ColumnWidth=".7">
                              <Items>                                
                                <ext:TextField ID="tfNaslov" DataIndex="Naslov" runat="server" FieldLabel="Naslov" 
                                AllowBlank="false" MinLength="2" AnchorHorizontal="95%"/>
                                <ext:ComboBox ID="cbPoste" runat="server" StoreID="StorePoste" 
																		Editable="false" LabelAlign=Top FieldLabel="Pošta"
																		DisplayField="StevilkaNaziv"  ValueField="PostaId" TypeAhead="true" AnchorHorizontal="95%"
																		Mode="Local" ForceSelection="true" EmptyText="Izberi pošto..."
																		Resizable="false" SelectOnFocus="true" AutoHeight="true" />
                              </Items>
                            </ext:Container>
                            <ext:Container ID="Container3" runat="server" LabelAlign="Top" Layout="Form" ColumnWidth=".3">
                              <Items>                                
                                <ext:NumberField ID="nfDavcna" DataIndex="davcna" runat="server" FieldLabel="Davčna" AllowBlank="false" MinLength="8"  MaxLength="8"  AnchorHorizontal="95%"/>    
                                <ext:TextField ID="tfTelefon" DataIndex="Telefon" runat="server" FieldLabel="Telefon" AnchorHorizontal="95%"/>
                              </Items>
                            </ext:Container>
                            
                          </Items>
                        </ext:Container>                              
                      </Items>                          
                    </ext:Panel>
                  </Items>
                </ext:fieldset> 
                <ext:fieldset ID="Fieldset3" runat="server" title="Kadrovski podatki" layout="form" Width="625" >
                  <Items>
                    <ext:Panel 
                      ID="Panel2" runat="server"
                      Width="600" Border="false" >
                      <Items>
                        <ext:Container ID="Container4" runat="server" Layout="Column" Height="90">
                          <Items>
                            <ext:Container ID="Container5" runat="server" LabelAlign="Top" Layout="Form" ColumnWidth=".5">
                              <Items>                                
                                <ext:ComboBox ID="cbPoklic" runat="server" StoreID="StorePoklic" 
                                  Editable="false" DisplayField="Naziv" TypeAhead="true" Mode="Local" 
                                  ForceSelection="true" SelectOnFocus="true" ValueField="PoklicId"
                                  EmptyText="Izberi..." FieldLabel="Poklic"  BlankText="Izberi poklic ..."
                                  AnchorHorizontal="95%" >
                                </ext:ComboBox>
                                <ext:ComboBox ID="cbDelovnoMesto" runat="server" StoreID="StoreDelovnoMesto" 
                                  Editable="false" DisplayField="Naziv" TypeAhead="true" Mode="Local" 
                                  ForceSelection="true" SelectOnFocus="true" ValueField="DelovnoMestoId"
                                  EmptyText="Izberi..." FieldLabel="Delovno mesto"  BlankText="Izberi delovno mesto ..."
                                  AnchorHorizontal="95%" >
                                </ext:ComboBox>
                              </Items>
                            </ext:Container>
                            <ext:Container ID="Container6" runat="server" LabelAlign="Top" Layout="Form" ColumnWidth=".5">
                              <Items>                                
																
                              </Items>
                            </ext:Container>
                          </Items>
                        </ext:Container>                              
                      </Items>                          
                    </ext:Panel>
                  </Items>
                </ext:fieldset>  
              </Items>
            </ext:FormPanel>
            <ext:Panel ID="Panel5" runat="server" Border="false" height="50" BodyStyle="background-color: #CCE7CE; border-bottom: 1px solid #d0d0d0; "  >   
                  <Items>
                    <ext:Panel ID="Panel6" runat="server" Border="false" ButtonAlign="Left" >   
                      <Buttons>
                        <sio:Button ID="btnShrani" runat="server" Text="Shrani" Icon="Accept" >
                          <Listeners>
                            <%--<Click Handler="if (#{FormPanelPodrobnosti}.getForm().isValid()) {Ext.net.DirectMethods.ShraniUceciPodrobnosti(#{IDM}.getValue());}else{Ext.Msg.show({icon: Ext.MessageBox.ERROR, msg: 'Prosimo vnesite zahtevana polja.', buttons:Ext.Msg.OK});}" />--%>
                        </Listeners>
                        </sio:Button>  
                        <sio:Button ID="btnPreklici" runat="server" Text="Prekliči" Icon="Decline" >
                         <%-- <Listeners><Click Handler="Ext.net.DirectMethods.ShraniUceciPodrobnosti();" /></Listeners>--%>                     
                        </sio:Button>
		                  </Buttons>                         
                    </ext:Panel>
                  </Items>
                </ext:Panel>
            
          </Items>
        </sio:ScrollingPanel>
      </Items>        
    </ext:Viewport>
  </form>
</body>
</html>
